package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"sanya-trip/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/add", &controllers.TripController{}, "POST:Add")

	beego.Router("/list", &controllers.TripController{}, "GET:List")

	beego.Router("/del", &controllers.TripController{}, "POST:Del")

	beego.Router("/update", &controllers.TripController{}, "POST:Update")

	beego.Router("/image", &controllers.TripController{}, "POST:Image")
}
